package io.coderyeah.ymcc.feign.client;

import io.coderyeah.ymcc.feign.fallback.MediaClientFallback;
import io.coderyeah.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-media", fallbackFactory = MediaClientFallback.class)
public interface MediaServiceClient {
    @GetMapping("/mediaFile/course/{id}")
     JSONResult getByCourseId(@PathVariable Long id);
}
